/**
 * Copyright (c) 2012 Axa Holding Belgium, SA. All rights reserved.
 * This software is the confidential and proprietary information of the AXA Group.
 */
package chabernac.android.tools;

public class SingleObjectQueue<T> {
  private T myObject;
  
  public synchronized void put(T anObject){
    myObject = anObject;
  }
  
  public synchronized T get(){
    T theObject = myObject;
    myObject = null;
    return theObject;
  }
}
